package com.explorati.design_pattern.behavior.state;

/**
 * 抽象状态(State)角色：该角色用以封装环境对象的一个特定状态所对应的行为
 * 
 * @author explorati
 *
 */
public abstract class CourseVideoState {

	// 定义一个环境角色
	protected CourseVideoContext courseVideoContext;

	// 设置环境
	public void setCourseVideoContext(CourseVideoContext courseVideoContext) {
		this.courseVideoContext = courseVideoContext;
	}

	// 抽象行为
	public abstract void play();

	public abstract void speed();

	public abstract void pause();

	public abstract void stop();
}
